home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2000 June (IDG) / Macworld_June_2000.iso / Shareware World / Utilities / Text Processing / Jedit3.0 / Manual / Chap4 Editing < prev    next >
Encoding:
Text File  |  2000-03-21  |  22.3 KB  |  511 lines  |  [TEXT/JED3]

  1. Chapter 4 - Editing
  2.  
  3.  
  4. 4.1 The Parts of the Document Window
  5.  
  6. 
  7.  
  8.  Directory pop-up Menu
  9.     Click the document title with the command key down, then a pop-up
  10.     menu will appear as shown below. This example shows that the "Chap
  11.     4 Editing" file is located in the "Manual" folder of the "MY DATA" HD.
  12.     If you select the folder or drive menu item, it will be opened on the
  13.     Finder desktop.
  14.                     
  15.  
  16. Splitting Views
  17.     You can split the document window into more than 2 different views.
  18.      For example, while viewing the beginning of the document in the top
  19.     view, you can edit the end of the document in the bottom view.
  20.     
  21.     To split a window, locate your mouse to the split line under the ruler
  22.     at the top of the window.  When the ruler is not shown in the window,
  23.     the split line will be under the title bar. Your mouse pointer will turn
  24.     into either a   shape or   shape.  Drag the line down to split the
  25.     window.  You can also split the window by double clicking on this split
  26.     line.    
  27.     
  28.     To adjust the height of the split views, locate the mouse pointer over
  29.     the split line. The mouse pointer now will turn into a     shape. 
  30.     Then drag the split line to the desired position.
  31.  
  32.     To remove the split line,  double click on the split line you want
  33.     to remove.
  34.     
  35.  
  36. Ruler
  37.     To show the ruler,  select "Ruler" of "Format" menu or select the
  38.     pop-up menu at the top right corner of the window. You can
  39.     choose the ruler scales between columns, points, centimeters
  40.     and inches, You can also show the ruler by double clicking on the
  41.     line under the title bar where the mouse pointer turns into the 
  42.      shape To hide the ruler, double click on the ruler or choose "Hide"
  43.     of the "Ruler" menu. The column scales on the ruler are
  44.     determined by the font and the size which are set at "Ruler
  45.     Font..." on the "Format" menu.
  46.  
  47. Display Line Numbers
  48.     To display line or paragraph numbers, select "Line numbers" from
  49.     the "Format" menu or select the line number pop-up menu at the
  50.     bottom left of the window.  You can also show the numbers by
  51.     double clicking on the left edge of the window where the mouse
  52.     pointer turns into the shape. To hide the line or paragraph
  53.     numbers, double click on the numbers area or choose "Hide" of the
  54.     "Line numbers" menu. If you drag the mouse pointer over the
  55.     numbers area, the corresponding lines in the document will be
  56.     highlighted.
  57.          
  58. Line Position
  59.     The line position of the cursor appears at the bottom of the window.
  60.     You can show the line number or paragraph number by use of the line
  61.     number pop-up menu on the left side.
  62.     The total number will appear after the "/". If the document is already
  63.     modified but has not been saved yet, a "*" mark will appear after the
  64.     numbers.
  65.     If you click this line position area, it will switches circularly to
  66.     line number, paragraph number and the amount of the free
  67.     memory.
  68.  
  69. Free Memory
  70.     The free memory indicates the remaining application memory (in
  71.     heap). When the free memory goes below 65KB, an alert box
  72.     will appear. If you see this alert box, quit Jedit3.0 immediately. 
  73.     Then, increase the size of application memory of Jedit3.0.
  74.     
  75.     As the temporary memory is used to edit the documents, the size of
  76.     the free memory is not related to the editable size of the document.
  77.     For example, you can edit an 1 MB text file while the free memory is
  78.     only 200KB.
  79.  
  80.  
  81.  
  82. 4.2 Keyboard Shortcuts
  83.  
  84.  
  85. Moving the Cursor
  86.  
  87. You can use the arrow keys to move the cursor as follows:
  88.  
  89.        Left arrow moves the cursor one character to the left.
  90.        Right arrow moves the cursor one character to the right.
  91.        
  92.        Up arrow moves the cursor one line up.
  93.        Down arrow moves the cursor one line down.
  94.  
  95.        Option+left arrow moves the cursor one word to the left.
  96.        Option+right arrow moves the cursor one word to the right.    
  97.  
  98.        Command+left arrow moves the cursor to the beginning of 
  99.        the paragraph.
  100.        Command+right arrow moves the cursor to the end of the paragraph.
  101.  
  102.        Option+up arrow or page up moves the cursor to the top of
  103.        the current page or the previous page.
  104.        Option+down arrow or page down moves the cursor to the
  105.        bottom of the current page or the next page.
  106.  
  107.        Command+up arrow or Home moves the cursor to the
  108.        beginning of the document.
  109.        Command+down arrow or End moves the cursor to the end
  110.        of the document.
  111.        
  112.        Shift+return scrolls the view to the page where the cursor is located.
  113.        
  114.        Shift+delete deletes the previous word.
  115.        Option+delete deletes the characters from the cursor to the end
  116.        of the paragraph.*1
  117.         
  118. *1: Option+delete also works as an "undo ATOK conversion" function. You can choose the "option+delete" function in "Key-in" of the "Preferences."
  119.  
  120.  
  121. Control Keys
  122.  
  123. You can use the combinations of the control key and character key to move the cursor or scroll through the document window.  You can choose the default key command set between  "diamond cursor" and "emacs like"  in the "Key Commands" preferences. You can also customize each key command. ( (For details, see "Chapter 3, 3.8 Key Commands".)
  124.     
  125.                         
  126.                              Diamond cursor           emacs like
  127. Input control code                    ctrl-P                ctrl-Q
  128. Cursor, one character left            ctrl-S                ctrl-B
  129. Cursor, one character right            ctrl-D                ctrl-F
  130. Cursor, one line up                    ctrl-E                ctrl-P
  131. Cursor, one line down                ctrl-X                ctrl-N
  132. Cursor, one word left                ctrl-A                ESC B
  133. Cursor, one word right                ctrl-F                ESC F
  134. Cursor, to top line of page            ctrl-Q ctrl-E                ESC V
  135. Cursor, to bottom line of page        ctrl-Q ctrl-X                ctrl-V
  136. Cursor, to top of paragraph            ctrl-Q ctrl-S            ctrl-A
  137. Cursor, to end of paragraph            ctrl-Q ctrl-D            ctrl-E
  138. Cursor, to top of document               ctrl-Q ctrl-R                ESC , 
  139. Cursor, to end of document            ctrl-Q ctrl-C            ESC . 
  140. Scroll up one line                    ctrl-W
  141. Scroll down one line                    ctrl-Z
  142. Scroll to previous page                ctrl-R
  143. Scroll to next page                       ctrl-C
  144. Delete right character                ctrl-H                ctrl-H
  145. Delete left character                ctrl-G                ctrl-D
  146. Delete word                        ctrl-T                ESC H
  147. Delete paragraph                    ctrl-Y
  148. Delete from top of para to cursor    ctrl-Q ctrl-T
  149. Delete from cursor to end of para    ctrl-Q ctrl-Y                  ctrl-K ctrl-Y
  150. Insert TAB                        ctrl-I                ctrl-I
  151. Insert line break                    ctrl-M                ctrl-M
  152. Undo                                ctrl-U                ctrl-X ctrl-U
  153. Cut                                                    ctrl-w
  154. Copy                                                    ESC w
  155. Paste                                                ctrl-Y
  156.  
  157.  
  158.  
  159.  
  160. Other Key Commands
  161.  
  162. + To open the contextual menu on MacOS 8 or higher, click the highlighted area with the control key down.
  163.  
  164. + To open a URL in the document, click the URL string with the command key down.
  165.  
  166. + To open the dictionary, click the highlighted word you want to look up  with the command and option keys down. (For details, see "Chapter 3, 3.7 Key-in")
  167.  
  168. + To open the directory menu, click the title on the document window with the command key down.
  169.  
  170. + Function Keys: F1=Undo, F2=Cut, F3=Copy, F4=Paste
  171.  
  172. + If you hold the option key while scrolling, the document will scroll in the opposite direction. 
  173.  
  174. + If you hold the shift key while scrolling, scrolling speed will be slow.
  175.  
  176. + If you press the shift and return key together, Jedit will jump to the page where the cursor is located.
  177.  
  178. + Pressing the shift and delete key together will delete a character to the right side of the cursor. 
  179.  
  180. + If you select "Copy" from the "Edit" menu with the shift key down, only text data (no style data) will be copied to the clipboard.
  181.  
  182. + If you paste or drop text with the shift key down, the lines are formatted and then inserted. If you select "Add Quote Prefixes" in the dialog of "Format Settings..." menu, quote prefixes will be also added.
  183.  
  184. + If you paste text with the control key down, only style data, such as font,  size, style and color will be pasted from your clipboard. 
  185.  
  186. + To paste the current date string, type "d" with the command key down. If you type "d" with both the command and shift keys down, the long date string will be pasted.
  187.  
  188. + To paste the current time string, type "t" with the command key down. If you want to paste the current time string including seconds, type "t" with the command and shift keys down.
  189.  
  190. + To search backwards, select "Find Next" menu with the shift key down, or type "g" with the command and shift keys down. 
  191.  
  192. + To search backward for the selected string, select "Find Selection" with the shift key down, or type "h" with the command and shift keys down. 
  193.  
  194. + If you select the "Hankaku to Zankaku..." or "Zenkaku to Hankaku..." menu with the shift key down, you can convert directly without the setting dialog.
  195.  
  196. + To open a non-text file, select the "Open..." of the menu "File"  with the option key down.
  197.  
  198. + To remove a file name from the "Recent Files" of the menu "File", select that file item with the option key down.
  199.  
  200. + To close all active document windows, close the current document window with the option key down.
  201.  
  202. + To clear all Undo data, select the "Undo" of the menu "Edit" with the option key down.
  203.  
  204. + If you change the font with the "Font" of the menu "Format" with the option key down, the font of the selected area is forced to change to the target font ignoring whether the script of the selected area matches the target font or not.
  205.  
  206. + To insert a file whose file creator is not "TEXT", drag and drop the file icon with the option key down.
  207.  
  208. + To insert an alias for a file or folder, drop the file or folder icon with the control key down.   If the docoument is in the HTML coloring mode, the URL path name of the file will be inserted instead of the alias.
  209.  
  210. + To repair a damaged alias in the document, double click on that alias icon with the option key down.
  211.  
  212. + To change the linkage of the file on the bookmark list, double click on the file icon in the list with the option key down.
  213.  
  214.  
  215.  
  216.  
  217.  
  218. 4.3 Objects
  219.  
  220. You can insert images, sounds, QuickTime files, QuickDraw3D files, and aliases on the Jedit3.0 document file. These non-text items are called "Objects"*.
  221.  
  222. * The term  "objects"  of different meaning is also used in AppleScript. Don't confuse the objects in AppleScript with the above objects.  In  AppleScript,  the "objects" are some sort of targets for the AppleScript commands, such as characters, lines, paragraphs, documents and so on.
  223.  
  224. You can copy, paste, drag and drop these objects in the same manner as the text.  In one document file, the total size of the objects can't exceed 16MB.
  225.  
  226. Image Objects
  227.     The image objects are drawn directly in the Jedit document window.
  228.     They are stored as the "PICT" resources internally.
  229.     You can copy the image object from another application and
  230.     paste it on the Jedit document window.  You may also copy the
  231.     image object from the Jedit document window and paste it on
  232.     another application's document window.  Dragging and dropping
  233.     the images is also available.
  234.     When you drop the image object onto the Finder desktop, a picture
  235.     clipping icon    will appear.  You can also drop the PICT files 
  236.      onto the document window.
  237.     To insert an image object from the PICT file or the PICT resource in
  238.     another file, select the "Import..." of the menu "File". To export image
  239.     objects as new PICT files , select the "Export Objects..."
  240.     of the menu "File".
  241.     
  242. Sound Objects
  243.     The sound objects are stored as the "snd " resources internally. 
  244.     They appear as the icon  on the Jedit document window.
  245.     Double click this object icon to play the sound. When you drop the
  246.     sound object onto the Finder desktop, a sound clipping icon 
  247.     will appear.
  248.     You can also drop the snd files  onto the document window.
  249.     To insert the "snd " resource of another application file,  select the
  250.     menu "Import..." of "File".
  251.     To export sound objects as the new snd files , select the
  252.     menu "Export Objects..." of "File" .
  253.     
  254. QuickTime Objects
  255.     To insert the QuickTime object, select the "Import..." of the menu "File".
  256.     You can also drop the QuickTime files  onto the document
  257.     window directly.
  258.     
  259.     QuickTime objects have a  icon at the top left corner of the
  260.     object area. To play the QuickTime movie, double click somewhere in
  261.     the object area.  To stop the movie, click somewhere outside of the
  262.     object.
  263.     
  264.     * The following pictures are only QuickTime sample images and cannot be played.
  265.                     
  266.  
  267.     QuickTime data itself will be never copied to the Jedit3.0 document
  268.     file. The document file only contains the information to play the
  269.     original QuickTime file.  If you have deleted the original QuickTime
  270.     file, the object can no longer be played. Therefore, if you give
  271.     someone the document files containing QuickTime objects,  you must
  272.     also give the original QuickTime files along with the document files.
  273.     Selecting the "Export Objects..." of the menu "File", you can export the
  274.     QuickTime objects in following formats.
  275.      BMP files , DV Stream Files, PICT files, Movie files
  276.  
  277.  
  278.  
  279. QuickDraw3D Objects
  280.     To insert the QuickDraw3D object, select the "Import..." of
  281.     the menu "File" . You can also drop the QuickDraw3D files  directly
  282.     onto the document window.
  283.     QuickDraw3D objects have a  icon at the top left of the object area.
  284.     To play the QuickDraw3D, double click somewhere in the object area.
  285.     To stop the QuickDraw3D, click somewhere outside of the object area.
  286.     
  287.     *The following pictures are only sample images of QuickDraw3D and can not be opened.
  288.     
  289.                          
  290.     
  291.     The QuickDraw3D objects differ from the QuickTime objects, in that
  292.     they do not require the  existence of an original QuickDraw3D files. 
  293.     All the data of the QuickDraw3D will be contained in the Jedit
  294.     document.
  295.  
  296.     To export the QuickDraw3D objects as new QuickDraw3D files,
  297.     select the "Export Objects..." of the menu "File".    
  298.     
  299.     QuickDraw3D is not available on the 68K Macintoshes.
  300.  
  301.  
  302. Alias Objects
  303.     You can insert the aliases of the files or folders into the Jedit
  304.     document.  An alias icon that looks like the original file icon*
  305.     will appear in your document window. When you double click on the
  306.     alias icon, the original file or folder will be opened.
  307.     
  308.     *The background color of the alias icon is blue.   As custom icons are not supported in
  309.     the Jedit document window, the alias icons of folders or volumes will appear as
  310.     the standard icons.  
  311.     
  312.     The following is the sample of the alias of the "Manual" folder.
  313.       <--- Double click to open the "Manual" folder.
  314.  
  315.     To insert an alias of an file or folder, simply drop the file icon onto
  316.     the document window while holding down the control key.  The alias
  317.     icon of the file will appear in the the document.
  318.     
  319.     Please hold down the control key after you start to drag the file.
  320.     If you hold down the control key at the same time you start to drag,
  321.     the contextual menu will be opened instead.
  322.     
  323.     You can also insert the aliases by selecting the "Import..."of the
  324.     menu "File".
  325.     
  326.     If Jedit3.0 can not find the original file when you double click on the alias
  327.     object, the following dialog will appear and ask you to specify the
  328.     original file.
  329.     
  330.     
  331.             
  332.     To repair the damaged alias, double click on the alias object  with the
  333.     option key down.  This will cause the above dialog to appear.
  334.     
  335.     When you give someone the document files containing the aliases,
  336.     you should also give the original files of the aliases.
  337.     
  338.  
  339.  
  340. 4.4  Undo and Redo
  341.  
  342.  
  343. Select "Undo" from the "Edit" menu to undo the previous action.
  344. Select "Redo" from the "Edit" menu to cancel the previous undo.
  345.  
  346. In the "General" preferences, you can choose the mode between the multiple undo and the single undo.
  347.  
  348. In the multiple undo mode, you can undo the multiple actions and go back to the state when the document was initially opened.  You can also redo multiple times and return to the state when you began to undo.
  349.  
  350. In the single undo mode, you can only undo the previous action.
  351.  
  352. The multiple undo is the default setting.  However, in such cases that you repeat an action thousands of times using AppleScript, the thousands of data of undo may comsume a lot of memory and cause the memory shortage.
  353.  
  354. You can use the following script to switch from the multiple undo to the single undo before you start the memory comsuming scripts.
  355.  
  356.     set infinite undo of document 1 to false
  357.  
  358. (For details, see "Script Manual".)
  359.  
  360. When the free memory is getting shorter, select the "Undo" of the menu  "Edit" with the option key down.  It will clear all the undo data stored in the memory.
  361.  
  362.  
  363.  
  364.  
  365. 4.5 Copy, Cut and Paste
  366.  
  367. You can copy, cut and paste text data just as you can in any other Macintosh applications.
  368.  
  369. When you copy or cut text, style data (such as font,  style and size) will be also copied on the clipboard.
  370.  
  371. To copy text data only, select "Copy" menu with the shift key down.  If you have checked "Unstyled Copy & Paste" in the "General" preferences, you do not have to hold the shift key.
  372.  
  373. If you want to paste only style data, select "Paste" menu with the control key down.
  374.  
  375. Shortcuts for the Highlighted Areas
  376.     To copy or cut  a certain text area, first drag your mouse to highlight
  377.     it. Otherwise:
  378.     
  379.     + To highlight one word, double click on the word.  To highlight one line,
  380.     do triple clicks on the line.  To select an entire paragraph, click four
  381.     times. To highlight the whole document, click five times.
  382.     
  383.     + To highlight between two separate text areas, highlight one area
  384.     first, and then highlight the another area with the shift key down.
  385.     
  386.     + With shift key and cursor control keys such as shift and arrow
  387.     keys, you can also highlight areas without the mouse.
  388.     
  389.     + To highlight lines, drag over the line numbers area shown on the
  390.     left side of the document window.
  391.  
  392. Format Lines  and Add Quotation Marks
  393.     If you paste text with the shift key down, the lines will be formatted to
  394.     the specified width and then be pasted.  If you have checked the "Add
  395.     Quote Prefixes" in the menu "Format Settings", the quote prefix will be
  396.     also added to each formatted line.
  397.  
  398.  
  399. 4.6 Drag & Drop
  400.  
  401. In order to use the drag and drop function, you need a MacOS 7.5 or later or MacOS 7.1.x with Drag and Drop 1.1.  Using drag and drop, you can transfer data between the document windows or the applications much more easily than using copy and paste.
  402.  
  403. You can drag the text data and drop it onto the another document as in the following.
  404.  
  405. Highlight a text area in the document window.  When the mouse pointer goes over the highlighted area, it will turn into a    shape.  Click and hold the mouse button.  The mouse pointer will then turn into a    shape.  While continuing to hold the mouse button, move the pointer onto another document window.  Release the mouse button and the highlighted text area will then be copied on to the new document window.
  406.  
  407. When you drag and drop the text onto the same document window, the text  will be "moved," but not "copied."  If you want to copy the highlighted text in the same document, drag and drop with the option key down.
  408.  
  409. When you drop the objects onto the Finder destop, the following clipping files will be created. When you drop the following clippings into the document file, the contents will be pasted as the objects.
  410.         Text clipping:                
  411.         PICT clipping:                
  412.         Sound clipping:                
  413.         QuickTime clipping    :        
  414.         QuickDraw3D clipping:        
  415.         Alias Clipping:                
  416.         Text including objects:         
  417.  
  418. The QuickTime clippings, QuickDraw3D clippings, alias clippings can only be pasted onto the Jedit3.0 document.  As these clippings are specific to Jedit3.0, you can not drop these clippings onto applications other than Jedit3.0.
  419.  
  420. You can also drop the following files onto Jedit3.0 document windows:
  421.  
  422.      Text Files (The file type must be "TEXT".)
  423.       Read Only Text Files of SimpleText(The file type must be "ttro".)
  424.       PICT Files(The file type must be "PICT".)
  425.      Sound Files(The file type must be "sfil".)
  426.      QuickTime Files(The file type must be "MooV" or "qtif".)
  427.     QuickDraw3D Files(The file type must be "3DMF".)
  428.     
  429. If you drop the text with the shift key down, the lines will be formatted to the specified width and then be inserted.  If you have checked the  "Add Quote Prefixes" in the menu "Format Settings", the quote prefix will be also added to each formatted line.
  430.  
  431. To drop binary files, hold down the option key while dropping the item. 
  432. Keep in mind that the none-text data may not be displayed correctly in
  433. the document window or in some cases it may cause abnormal program
  434. operations.
  435.  
  436. To insert the alias, drop the file, folder or drive icon onto the document with the control key down.  Please hold down the control key after you start to drag the file. If you hold down the control key at the same time you start to drag, the contextual menu will be opened instead.
  437.  
  438. In the HTML coloring mode, to insert a path name or URL, drop the destination file or folder icon onto the document with the control key down.  If the document file is already saved, the relative path to the document file will be inserted, otherwise absolute path will be inserted.
  439. ( For details, see "Chapter 6, 6.5 HTML Assistant Tools")
  440.  
  441.  
  442.  
  443.  
  444. 4.7 Other Functions
  445.  
  446.  
  447. Balance Parentheses
  448.     If the document contains many parentheses or brackets, the
  449.     inclusion of the parentheses will become quite confusing.  It is
  450.     often difficult to determine where a set of the parentheses
  451.     begins or ends. 
  452.     
  453.     To find another half of the parentheses pair, highlight one
  454.     half of the parentheses and selecting the "Balance" of the menu
  455.     "Edit".  Then the entire contents within the parentheses will be
  456.     highlighted.
  457.     
  458.     To highlight the area between the parentheses, locate your
  459.     mouse pointer somewhere between the parentheses pair and
  460.     select the menu "Balance"
  461.     
  462.     Jedit3.0 recognizes the following 13 parentheses, brackets,
  463.     etc.:
  464.     
  465.         
  466.  
  467.  
  468. Shift Right and Shift Left
  469.     You can use the menu "Shift Right" to add a tab indentation. You
  470.     can use the menu "Shift Left" to delete a tab indentation. 
  471.     Note that you can not delete space indentations with the menu
  472.     "Shift Left".
  473.  
  474.  
  475. Paste Date and Time
  476.     To  paste the current date or time string, select the menu "Paste
  477.     Date" or "Paste Time" of "Edit" .
  478.     
  479.     To paste a long string that includes the day of the week, or a time
  480.     that includes seconds, select "Date" or "Time" with the shift key
  481.     down.
  482.     
  483.     See the following examples:
  484.         
  485.         short Date:    99.3.17
  486.         short Time:    9:11 PM    
  487.         
  488.         long Date with shift key :  Wednesday, June 9, 1999
  489.         long Time with shift key :  9:11:41 PM
  490.  
  491. Inserting Page Breaks
  492.     To insert a page break (0x0c), select the menu "Insert Page Break".
  493.     The mark   will be displayed to indicate the page break.
  494.  
  495. Save and Paste Signature
  496.     To register your signature, type your signature in the document
  497.     and highlight it. Then, select the menu "Save As Signature...". 
  498.     Your signature will be stored in the Jedit3.0 Preference file.
  499.     
  500.     If you have set "Internet Config Aware" in the "General"
  501.     preferences, the signature will be also registered in the "Internet
  502.     Config".
  503.     
  504.     To paste your signature, select the menu "Paste Signature".  In
  505.     "Internet Config Aware" mode, the signature of "Internet Config"
  506.     will be pasted instead.
  507.  
  508.  
  509.  
  510.  
  511.